package com.jp.knowledge.model;

import com.jp.knowledge.model.attention.AttentionGroupDetailModel;
import com.jp.knowledge.my.model.OrganizaModel;

import java.io.Serializable;
import java.util.List;

/**
 * Created by jiayen on 16/11/14.
 *
 * 用户信息实体类
 */

public class UserData implements Serializable{

    /**
     * isLogin : 1
     * uuid : 897548f1-5cc2-4903-a937-37b4e5c668af
     * token : 4e454812-6c85-4ea6-a204-63f8e5455ec5
     * nickname : Terence
     * username : Terence
     * userIntro : 一个IT人
     * grade : v1
     * gradeName : 新手
     * phone : 13415112643
     * qrcode : wwwwwwwwwww
     * gender : 男
     * portrait : wwwwwwwwwww
     * integralNum : 0
     * browseNum : 0
     * subscribetNum : 0
     * followNum : 0
     * subjectNum : 0
     * topicNum : 0
     * advicesNum : 0
     * expNum : 0
     * shareNum : 0
     * roles : [{"roleId":"12345","roleName":"是","roleState":1},{"roleId":"12345","roleName":"是","roleState":1}]
     * companyId : 1234567890
     * companyState : 0
     * companyName : HAHA
     * companyGender : V1
     * companyExternal : 1
     * intelligence : 1
     * companyManage : 1
     * auditStete : 0
     * departmentId : 1234567890
     * department : 研发部
     * position : 产品经理
     * skills : [{"skillId":"R3628","skillName":"产品人员"}]
     * industry : [{"industryId":"I5860","industryName":"教育"}]
     */

    private int browseNum;
    private int subscribetNum;
    private int subjectNum;
    private int topicNum;
    private int advicesNum;
    private int expNum;
    private int shareNum;
    private String companyId;
    private int organizaType;
    private int companyState;
    private String companyName;
    private String companyGender;
    private int companyExternal;
    private int intelligence;
    private int companyNum;//公司数量
    private int companyManage;
    private int auditStete;
    private String departmentId;
    private String department;
    private String position;
    private long createTime;
    private List<SkillsBean> skills;
    private List<IndustryBean> industry;
    private List<OrganizaModel>  companyList;//组织列表
    private String organization;
    private int unAuthCompanyNum;//未验证公司数
    private int vipDays;
    private String unionid;
    private String gender;
    private String qrcode;
    private int messageNum;
    private int auditNum;
    private int orderNum;
    private String uuid;
    private int skillLevel;
    private int isLogin;
    private int integralNum;
    private int readMessageNum;
    private long vipTime;
    private String nickname;
    private String email;
    private String gradeName;
    private String userIntro;
    private String openid;
    private int bindWeixin;
    private String portrait;
    private String secuCode;
    private int isVip;
    private String token;
    private int totalAmount;
    private int followNum;
    private String phone;
    private String grade;
    private String username;
    private String updateName;

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public int getReadMessageNum() {
        return readMessageNum;
    }

    public void setReadMessageNum(int readMessageNum) {
        this.readMessageNum = readMessageNum;
    }

    public int getBindWeixin() {
        return bindWeixin;
    }

    public void setBindWeixin(int bindWeixin) {
        this.bindWeixin = bindWeixin;
    }

    public String getSecuCode() {
        return secuCode;
    }

    public void setSecuCode(String secuCode) {
        this.secuCode = secuCode;
    }

    public int getMessageNum() {
        return messageNum;
    }

    public void setMessageNum(int messageNum) {
        this.messageNum = messageNum;
    }

    public int getAuditNum() {
        return auditNum;
    }

    public void setAuditNum(int auditNum) {
        this.auditNum = auditNum;
    }

    public int getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(int totalAmount) {
        this.totalAmount = totalAmount;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    private List<AttentionGroupDetailModel> groupDatas;     // 雷达我的分组数据，主要用于给搜索是添加监控用

    public List<AttentionGroupDetailModel> getGroupDatas() {
        return groupDatas;
    }

    public void setGroupDatas(List<AttentionGroupDetailModel> groupDatas) {
        this.groupDatas = groupDatas;
    }

    public List<OrganizaModel> getCompanyList() {
        return companyList;
    }

    public void setCompanyList(List<OrganizaModel> companyList) {
        this.companyList = companyList;
    }

    public int getUnAuthCompanyNum() {
        return unAuthCompanyNum;
    }

    public void setUnAuthCompanyNum(int unAuthCompanyNum) {
        this.unAuthCompanyNum = unAuthCompanyNum;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public int getCompanyNum() {
        return companyNum;
    }

    public void setCompanyNum(int companyNum) {
        this.companyNum = companyNum;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    private   int platformAdmin;//是否是管理员0-否 1-是

    public int getPlatformAdmin() {
        return platformAdmin;
    }

    public void setPlatformAdmin(int platformAdmin) {
        this.platformAdmin = platformAdmin;
    }

    public int getIsLogin() {
        return isLogin;
    }

    public void setIsLogin(int isLogin) {
        this.isLogin = isLogin;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserIntro() {
        return userIntro;
    }

    public void setUserIntro(String userIntro) {
        this.userIntro = userIntro;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPortrait() {
        return portrait;
    }


    public int getIntegralNum() {
        return integralNum;
    }

    public void setIntegralNum(int integralNum) {
        this.integralNum = integralNum;
    }

    public int getBrowseNum() {
        return browseNum;
    }

    public void setBrowseNum(int browseNum) {
        this.browseNum = browseNum;
    }

    public int getSubscribetNum() {
        return subscribetNum;
    }

    public void setSubscribetNum(int subscribetNum) {
        this.subscribetNum = subscribetNum;
    }

    public int getFollowNum() {
        return followNum;
    }

    public void setFollowNum(int followNum) {
        this.followNum = followNum;
    }

    public int getSubjectNum() {
        return subjectNum;
    }

    public void setSubjectNum(int subjectNum) {
        this.subjectNum = subjectNum;
    }

    public int getTopicNum() {
        return topicNum;
    }

    public void setTopicNum(int topicNum) {
        this.topicNum = topicNum;
    }

    public int getAdvicesNum() {
        return advicesNum;
    }

    public List<SkillsBean> getSkills() {
        return skills;
    }


    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public void setAdvicesNum(int advicesNum) {
        this.advicesNum = advicesNum;
    }

    public int getExpNum() {
        return expNum;
    }

    public void setExpNum(int expNum) {
        this.expNum = expNum;
    }

    public int getShareNum() {
        return shareNum;
    }

    public void setShareNum(int shareNum) {
        this.shareNum = shareNum;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public int getOrganizaType() {
        return organizaType;
    }

    public void setOrganizaType(int organizaType) {
        this.organizaType = organizaType;
    }

    public int getCompanyState() {
        return companyState;
    }

    public void setCompanyState(int companyState) {
        this.companyState = companyState;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyGender() {
        return companyGender;
    }

    public void setCompanyGender(String companyGender) {
        this.companyGender = companyGender;
    }

    public int getCompanyExternal() {
        return companyExternal;
    }

    public void setCompanyExternal(int companyExternal) {
        this.companyExternal = companyExternal;
    }

    public int getIntelligence() {
        return intelligence;
    }

    public void setIntelligence(int intelligence) {
        this.intelligence = intelligence;
    }

    public int getCompanyManage() {
        return companyManage;
    }

    public void setCompanyManage(int companyManage) {
        this.companyManage = companyManage;
    }

    public int getAuditStete() {
        return auditStete;
    }

    public void setAuditStete(int auditStete) {
        this.auditStete = auditStete;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public void setSkills(List<SkillsBean> skills) {
        this.skills = skills;
    }

    public List<IndustryBean> getIndustry() {
        return industry;
    }

    public void setIndustry(List<IndustryBean> industry) {
        this.industry = industry;
    }

    public long getVipTime() {
        return vipTime;
    }

    public void setVipTime(long vipTime) {
        this.vipTime = vipTime;
    }

    public int getIsVip() {
        return isVip;
    }

    public void setIsVip(int isVip) {
        this.isVip = isVip;
    }

    public int getVipDays() {
        return vipDays;
    }

    public void setVipDays(int vipDays) {
        this.vipDays = vipDays;
    }

    public int getSkillLevel() {
        return skillLevel;
    }

    public void setSkillLevel(int skillLevel) {
        this.skillLevel = skillLevel;
    }

    public static class RolesBean implements Serializable {
        /**
         * roleId : 12345
         * roleName : 是
         * roleState : 1
         */

        private String roleId;
        private String roleName;
        private int roleState;
        private int isChecked;

        public int getIsChecked() {
            return isChecked;
        }

        public void setIsChecked(int isChecked) {
            this.isChecked = isChecked;
        }

        public String getRoleId() {
            return roleId;
        }

        public void setRoleId(String roleId) {
            this.roleId = roleId;
        }

        public String getRoleName() {
            return roleName;
        }

        public void setRoleName(String roleName) {
            this.roleName = roleName;
        }

        public int getRoleState() {
            return roleState;
        }

        public void setRoleState(int roleState) {
            this.roleState = roleState;
        }
    }

    public static class SkillsBean implements Serializable {
        /**
         * skillId : R3628
         * skillName : 产品人员
         */

        private String skillId;
        private String skillName;

        public String getSkillId() {
            return skillId;
        }

        public void setSkillId(String skillId) {
            this.skillId = skillId;
        }

        public String getSkillName() {
            return skillName;
        }

        public void setSkillName(String skillName) {
            this.skillName = skillName;
        }
    }

    public static class IndustryBean implements Serializable {
        /**
         * industryId : I5860
         * industryName : 教育
         */

        private String industryId;
        private String industryName;
        private int isChecked;

        public int getIsChecked() {
            return isChecked;
        }

        public void setIsChecked(int isChecked) {
            this.isChecked = isChecked;
        }

        public String getIndustryId() {
            return industryId;
        }

        public void setIndustryId(String industryId) {
            this.industryId = industryId;
        }

        public String getIndustryName() {
            return industryName;
        }

        public void setIndustryName(String industryName) {
            this.industryName = industryName;
        }

        @Override
        public boolean equals(Object obj) {
            if(obj instanceof  IndustryBean){
                IndustryBean other = (IndustryBean) obj;
                return industryId.equals(other.getIndustryId());
            }
            return super.equals(obj);
        }
    }

}
